package com.spsy;

import com.spsy.common.core.domain.R;
import com.spsy.system.api.domain.SysFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: Sokai
 * @Date: 2024/10/17 20:41
 * @Description:
 **/
@Component
@FeignClient(value = "spsy-service-files",fallback = RemoteFileServiceImpl.class)
public interface RemoteFileService {

    @PostMapping("/upload")
    public R<SysFile> upload(MultipartFile file);
}
